package com.example.tests;

import org.testng.annotations.Test;

public class ContactCreationTests extends TestBase {
	
  @Test
  public void testNonEmptyClientCreation() throws Exception {
    ContactData contact = new ContactData();
    contact.firstname = "ivan";
    contact.lastname = "ivanov";
    contact.address = "Ukraine";
    contact.homePhone = "(044)555-55-55";
    contact.mobilePhone = "(093)555-55-55";
    contact.workPhone = "(044)777-77-77";
    contact.email = "test@gmail.com";
    contact.email2 = "test2@gmail.com";
    contact.birthDay = "10";
    contact.birthMonth = "June";
    contact.birthYear = "1991";
    contact.address2 = "Ukraine Kiev";
    contact.phone2 = "(044)666-66-66";
    app.getNavigationHelper().openMainPage();
    app.getContactHelper().initContactCreation();
    app.getContactHelper().fillContactForm(contact);
    app.getContactHelper().submitContactCreation();
    app.getContactHelper().returnToHomePage();
  }

  @Test
  public void testEmptyClientCreation() throws Exception {
	app.getNavigationHelper().openMainPage();
	app.getContactHelper().initContactCreation();
    app.getContactHelper().fillContactForm(new ContactData("", "", "", "", "", "", "", "", "-", "-", "", "", ""));
    app.getContactHelper().submitContactCreation();
    app.getContactHelper().returnToHomePage();
  }
  
}


